﻿using UnityEngine.UI;

public class SelectPlayPanel : BaseComponent
{
    private Button classicModeBtn;
    private Button threeModeBtn;
    private Button exitBtn;
    public override void Binding()
    {
        SelectPlayPanelModel cm = (SelectPlayPanelModel)GetComponentModel();
        classicModeBtn = transform.Find("ClassicModeBtn").GetComponent<Button>();
        threeModeBtn = transform.Find("ThreeModeBtn").GetComponent<Button>();
        exitBtn = transform.Find("ExitBtn").GetComponent<Button>();
        classicModeBtn.onClick.AddListener(cm.OnClickClassicMode);
        threeModeBtn.onClick.AddListener(cm.OnClickThreeMode);
        exitBtn.onClick.AddListener(cm.OnClickExit);
    }

    public override void UnBinding()
    {

    }
}